package com.java2007.zhangyu.restaurant.service.impl;

import com.java2007.zhangyu.restaurant.dao.OrderDetailDao;
import com.java2007.zhangyu.restaurant.dao.impl.OrderDetailDaoImpl;
import com.java2007.zhangyu.restaurant.pojo.OrderDetail;
import com.java2007.zhangyu.restaurant.service.OrderDetailService;


import java.sql.SQLException;
import java.util.List;

/**
 * @author zy
 * @Version
 * @date 2021/01 */
public class OrderDetailServiceImpl implements OrderDetailService {
    private OrderDetailDao orderDetailDao = new OrderDetailDaoImpl();

    @Override
    public List<OrderDetail> queryByOrderId(Long oId) throws SQLException {
        return orderDetailDao.queryByOrderId(oId);
    }
}
